import { baseUrl } from './baseUrl';
import request from '@/utils/request';

export async function getWeekAndMonthCount(params) {
  return request(`${baseUrl}/Problem/GetWeekAndMonthCount`, {
    method: 'POST',
    data: params,
  });
}

export async function getCountBySource() {
  return request(`${baseUrl}/Problem/GetCountBySource`, {
    method: 'POST',
  });
}

export async function getHandleCount() {
  return request(`${baseUrl}/Problem/GetHandleCount`, {
    method: 'POST',
  });
}

export async function getCountByTypeAndYear() {
  return request(`${baseUrl}/Problem/GetCountByTypeAndYear`, {
    method: 'POST',
  });
}
